
public class Test {
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer("helloworld");
//        System.out.println(sb.reverse());
//        System.out.println(sb.delete(5, 10));
//        System.out.println(sb.delete(5, 10).insert(0, "你好"));
//        int[] array = {1,2,3};

//        try{
//            System.out.println(array[5]);
//            System.out.println("ha");
//        }catch(ArrayIndexOutOfBoundsException e){
////            e.printStackTrace();
//            System.out.println("数组越界");
//        }
//        System.out.println("haha");
    }


}
